/*
 * @Author: MoWanPing
 * @Date: 2023-11-08 09:13:14
 * @LastEditTime: 2024-01-03 21:17:51
 * @LastEditors: MoWanPing
 * @Description: 
 * @FilePath: \jnks_low_air_front_gov\src\api\flightTask\releasefly.js
 */
import request from "@/utils/request";

// 获取放飞申请列表
export function getReleaseflyListApi(query, data = {}) {
  return request({
    url: '/flight/releasefly/list',
    method: 'post',
    params: query,
    data
  })
}

// 查询放飞申请详情
export function getReleaseflyDetailApi(releaseflyId) {
  return request({
    url: `/flight/releasefly/${releaseflyId}`,
    method: 'get',
  })
}

// 新增放飞申请
export function saveReleaseflyApi(query) {
  return request({
    url: '/flight/releasefly',
    method: 'post',
    data: query
  })
}

// 批量申请
export function updatesApplysApi(query) {
  return request({
    url: "/flight/releasefly/updates",
    method: 'post',
    data: query
  })
}

// 修改放飞申请
export function editReleaseflyApi(query) {
  return request({
    url: '/flight/releasefly/approval',
    method: 'post',
    data: query
  })
}



// 删除放飞申请
export function deleteReleaseflyApi(releaseflyId) {
  return request({
    url: `/flight/releasefly/${releaseflyId}`,
    method: 'delete',
  })
}